package com.one.group.admin.config;

import com.mybatisflex.core.tenant.TenantFactory;
import com.one.group.admin.tenant.MyTenantFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyTenantConfiguration {
    @Bean
    public TenantFactory tenantFactory(){
        TenantFactory tenantFactory=new MyTenantFactory();
        return tenantFactory;
    }
}
